function displayLogin(){
	$('#content').html(loginHTML);
	addBtnValidListener();
}

function addBtnValidListener(){
	$('#btn_valid_login').click(btnValidCLickHandler);
}


function getUserName(){
	return $('#username').attr('value');
}

function getPassword(){
	return $('#password').attr('value');
}

function btnValidCLickHandler(){
	$.post("/QCM-Server/LoginServlet",{username : getUserName(), password : getPassword()},function(data){
		isLoged = false;
		if(data != "-1"){
			localStorage['isLoged'] = true;
			showSessions();
		}else{
			localStorage['isLoged'] = false;
		}
	});
}